package com.xgpro.mapper.studycentre;


import com.xgpro.domain.studycentre.entity.UserCourse;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author tx
 * @version 1.0
 * @date 2019/9/28 23:56
 */
public interface UserCourseMapper extends Mapper<UserCourse> {

    /**
     * 报名,t_user_course中添加记录 乐观锁实现
     * @param userId
     * @param courseId
     * @return
     */
    @Insert( "insert into t_user_course(student_id,course_id) values(#{userId},#{courseId})" )
    Integer insertSignMessage(@Param("userId") Integer userId,@Param("courseId") Integer courseId);
}
